﻿<%@ Page Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true"
    CodeFile="SizeBanner.aspx.cs" Inherits="Admin_SizeBanner" %>

<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="page-heading">
        <h1>
            Add or Update Size</h1>
    </div>
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
        <tr>
            <th rowspan="3" class="sized">
                <img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
            <th class="topleft">
            </th>
            <td id="tbl-border-top">
                &nbsp;</td>
            <th class="topright">
            </th>
            <th rowspan="3" class="sized">
                <img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
        </tr>
        <tr>
            <td id="tbl-border-left">
            </td>
            <td>
                <!--  start content-table-inner -->
                <div id="content-table-inner">
                    <table border="0" width="100%" cellpadding="0" cellspacing="0">
                        <tr valign="top">
                            <td>
                                <div style="width: 920px; float: left;">
                                    <div style="width: 460px; float: left;">
                                        <table border="0" cellpadding="0" cellspacing="0" id="id-form">
                                            <tr>
                                                <th valign="top">
                                                    Size Name:</th>
                                                <td>
                                                    <div style="width: 320px">
                                                        <asp:TextBox ID="txtName" runat="server" Width="320px"></asp:TextBox>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th valign="top">
                                                    Width:</th>
                                                <td>
                                                    <div style="width: 320px">
                                                        <asp:TextBox ID="txtWidth" runat="server" Width="320px" Text="0"></asp:TextBox>
                                                    </div>
                                                </td>
                                            </tr>
                                            <tr>
                                                <th valign="top">
                                                    Height:</th>
                                                <td>
                                                    <div style="width: 320px">
                                                        <asp:TextBox ID="txtHeight" runat="server" Width="320px" Text="0"></asp:TextBox>
                                                    </div>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <!-- end id-form  -->
                                    <div style="width: 460px; float: left;">
                                        <table border="0" cellpadding="0" cellspacing="0" id="Table2">
                                            <tr>
                                                <th valign="top">
                                                    Description:</th>
                                                <td>
                                                    <FCKeditorV2:FCKeditor ID="fck_Desc" runat="server" Width="300px" ToolbarSet="RTI"
                                                        Height="230px" ToolbarCanCollapse="false" BasePath="~/Javascripts/FCKEditor/">
                                                    </FCKeditorV2:FCKeditor>
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                </div>
                                <div style="width: 700px; margin-left: 100px; float: left; padding-top: 20px;">
                                    <asp:Button ID="btnsave" CausesValidation="true" OnClientClick="return CheckValue()"
                                        CssClass="form-submit" Text="Save" runat="server" OnClick="btnsave_Click" />                                        
                                    <asp:Button ID="btnexit" CssClass="form-reset" runat="server" OnClick="btnBack_Click"
                                        CausesValidation="False" />
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <img src="images/shared/blank.gif" width="695" height="1" alt="blank" /></td>
                            <td>
                            </td>
                        </tr>
                    </table>
                    <div class="clear">
                    </div>
                </div>
                <!--  end content-table-inner  -->
            </td>
            <td id="tbl-border-right">
            </td>
        </tr>
        <tr>
            <th class="sized bottomleft">
            </th>
            <td id="tbl-border-bottom">
                &nbsp;</td>
            <th class="sized bottomright">
            </th>
        </tr>
    </table>
    <div class="clear">
        &nbsp;</div>
        <script type="text/javascript">
            function CheckValue()
            {
                {               
                 var txtName=document.getElementById("<%=txtName.ClientID%>");          
                 var txtWidth=document.getElementById("<%=txtWidth.ClientID%>");
                 var txtHeight=document.getElementById("<%=txtHeight.ClientID%>");
                 if(txtName.value=='')
                 {
                    alert('Name is not Null !');
                    return false;
                 }                 
                 if(txtWidth.value=='0')
                 {
                    alert('Width is Not Null or 0 !');
                    return false;
                 }
                 if(txtHeight.value=='0')
                 {
                    alert('Height is on page not null or 0 !');
                    return false;
                 }                 
            }
            }
    </script>
</asp:Content>
